package com.uyayo.ucenter.service;

import com.uyayo.framework.common.exception.EmailMultipleException;
import com.uyayo.framework.common.exception.PhoneMultipleException;
import com.uyayo.framework.core.service.IBaseService;
import com.uyayo.framework.pagehelper.pojo.PageBean;
import com.uyayo.ucenter.entity.Group;
import com.uyayo.ucenter.entity.GroupResourceRelation;
import com.uyayo.ucenter.model.GroupCondition;

import java.util.List;

public interface GroupService extends IBaseService<Group>{

	List<Group> selectGroup(GroupCondition groupCondition);

	PageBean<Group> selectGroupByPaging(PageBean<Group> pageBean, GroupCondition groupCondition);

	int saveGroup(Group Group) throws EmailMultipleException, PhoneMultipleException;

	int updateGroup(Group user) throws EmailMultipleException, PhoneMultipleException;

    List<GroupResourceRelation> findGroupResourceRelation(Long groupId);

    int grantGroupResource(String ids, Long groupId);
}
